#include <IO/VideoTextMode.h>
#include <Utility/intrinsic.h>

/*
@brief 设置屏幕的显存起始地址
@param wPosition 显存地址
@return void
*/
void VideoTextModePositionStart(WORD wPosition)
{
    OUT_BYTE(CRT_CONTROLLER_ADDR_REG, CRT_CONTROLLER_START_ADDR_HIGH);
    OUT_BYTE(CRT_CONTROLLER_DATA_REG, wPosition >> 8);
    OUT_BYTE(CRT_CONTROLLER_ADDR_REG, CRT_CONTROLLER_START_ADDR_LOW);
    OUT_BYTE(CRT_CONTROLLER_DATA_REG, wPosition);
}